import { Spin } from 'antd';
import styles from './index.less';

type Props = {
  spinning: boolean;
};
const LoadingPage = (props: Props) => {
  if (!props.spinning) {
    return null;
  }
  return (
    <div className={styles.box}>
      <Spin spinning={true} size="large" />
      <div className={styles.tip}>分析中...</div>
    </div>
  );
};
export default LoadingPage;
